package com.topisv.tms.web.lpn.vo;

import java.util.Date;

import org.springframework.data.domain.PageRequest;
import org.springframework.format.annotation.DateTimeFormat;

import com.topisv.tms.costants.StorageConstants;

/**
 * 
 * 界面显示的操在对象
 * 
 * @author zhangpeijun
 * @version [v1.0.4, 2016年5月9日]
 * @see [相关类/方法]
 * @since [产品/模块版本]
 */
public class PalletVo {
    
    private Long id;
    
    /**
     * 仓库编码
     */
    private String warehouseCode;
    
    /**
     * 商家编码
     */
    private String customerCode;
    
    /**
     * LPN编码
     */
    private String lpnNo;
    
    /**
     * 状态
     */
    private int status;
    
    /**
     * 默认查询有效数据
     */
    private int isValid = StorageConstants.VALID;
    
    /**
     * 创建时间
     */
    private Date createTime;
    
    /**
     * 查询开始时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date startTime;
    
    /**
     * 查询结束时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endTime;
    
    /**
     * 名称
     */
    private String name;
    
    /**
     * 托盘编码
     */
    private String palletNum;
    
    /**
     * 订单数
     */
    private int orderNum;
    
    /**
     * 备注
     */
    private String remark;
    
    /**
     * 分页对象
     */
    private PageRequest page;
    
    @Override
    public String toString() {
        return "PalletVo [id=" + id + ", warehouseCode=" + warehouseCode + ", customerCode=" + customerCode + ", lpnNo="
            + lpnNo + ", status=" + status + ", isValid=" + isValid + ", createTime=" + createTime + ", startTime="
            + startTime + ", endTime=" + endTime + ", name=" + name + ", palletNum=" + palletNum + ", orderNum="
            + orderNum + ", remark=" + remark + ", page=" + page + "]";
    }

    public int getIsValid() {
        return isValid;
    }

    public void setIsValid(int isValid) {
        this.isValid = isValid;
    }

    public Long getId() {
        return id;
    }
    
    public void setId(Long id) {
        this.id = id;
    }
    
    public PageRequest getPage() {
        return page;
    }
    
    public void setPage(PageRequest page) {
        this.page = page;
    }
    
    public String getWarehouseCode() {
        return warehouseCode;
    }
    
    public void setWarehouseCode(String warehouseCode) {
        this.warehouseCode = warehouseCode;
    }
    
    public String getCustomerCode() {
        return customerCode;
    }
    
    public void setCustomerCode(String customerCode) {
        this.customerCode = customerCode;
    }
    
    public String getLpnNo() {
        return lpnNo;
    }
    
    public void setLpnNo(String lpnNo) {
        this.lpnNo = lpnNo;
    }
    
    public int getStatus() {
        return status;
    }
    
    public void setStatus(int status) {
        this.status = status;
    }
    
    public Date getCreateTime() {
        return createTime;
    }
    
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    
    public Date getStartTime() {
        return startTime;
    }
    
    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }
    
    public Date getEndTime() {
        return endTime;
    }
    
    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }
    
    public String getName() {
        return name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    
    public String getPalletNum() {
        return palletNum;
    }
    
    public void setPalletNum(String palletNum) {
        this.palletNum = palletNum;
    }
    
    public int getOrderNum() {
        return orderNum;
    }
    
    public void setOrderNum(int orderNum) {
        this.orderNum = orderNum;
    }
    
    public String getRemark() {
        return remark;
    }
    
    public void setRemark(String remark) {
        this.remark = remark;
    }
    
}
